p {
	width: 100%;
	text-align: center;
	font-weight: bold;
}

.container {
	display: -webkit-flex;
	width: 600px;
	-webkit-flex-direction: row;
	text-align: center;
	margin: 0 auto;
}

.container1 {
	display: -webkit-flex;
	width: 600px;
	-webkit-flex-direction: column;
	height: 300px;
	margin: 0 auto;
	text-align: center;
}

.first {
	background: red;
	height: 100px;
	-webkit-flex: 1;
	line-height: 100px;
	vertical-align: middle;
}

.second {
	background: green;
	height: 100px;
	
	-webkit-flex: 1;
	line-height: 100px;
	vertical-align: middle;
}

.three {
	background: yellow;
	height: 100px;
	-webkit-flex: 1;
	line-height: 100px;
	vertical-align: middle;
}

.first1 {
	background: red;
	height: 100px;
	-webkit-flex: 1;
	-webkit-order: 2;
	line-height: 100px;
	vertical-align: middle;
}

.second1 {
	background: green;
	height: 100px;
	flex: 1;	
	-webkit-flex: 1;
	-moz-flex:1;
	-ms-flex:1;
	-o-flex:1;
	order: 3;
	-webkit-order: 3;
	-moz-order:3;
	-ms-order:3;
	-o-order:3;
	line-height: 100px;
	vertical-align: middle;
}

.three1 {
	background: yellow;
	height: 100px;
	-webkit-flex: 1;
	-webkit-order: 1;
	line-height: 100px;
	vertical-align: middle;
}